.class public Lcom/xingbook/park/ui/am;
.super Landroid/widget/RelativeLayout;


# instance fields
.field private a:Landroid/widget/ListView;

.field private b:F

.field private c:Landroid/content/Context;

.field private d:Lcom/xingbook/park/ui/aq;

.field private e:Lcom/xingbook/park/ui/ap;

.field private f:Lcom/xingbook/park/ui/p;

.field private g:Lcom/xingbook/park/ui/as;


# direct methods
.method public constructor <init>(Landroid/app/Activity;FLcom/xingbook/park/ui/ap;)V
    .locals 8
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const v7, -0xe74b13

    const/high16 v2, 0x4228

    const/high16 v6, 0x4100

    const/4 v3, -0x1

    const/4 v5, 0x0

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v0, Lcom/xingbook/park/ui/as;

    invoke-direct {v0, p0}, Lcom/xingbook/park/ui/as;-><init>(Lcom/xingbook/park/ui/am;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/am;->g:Lcom/xingbook/park/ui/as;

    iput p2, p0, Lcom/xingbook/park/ui/am;->b:F

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/ui/am;->c:Landroid/content/Context;

    iput-object p3, p0, Lcom/xingbook/park/ui/am;->e:Lcom/xingbook/park/ui/ap;

    invoke-virtual {p0, v3}, Lcom/xingbook/park/ui/am;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/park/ui/am;->c:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    invoke-virtual {v0, v5}, Landroid/widget/ListView;->setCacheColorHint(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    const v1, 0x7f070043

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelector(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    invoke-virtual {v0, v5}, Landroid/widget/ListView;->setDividerHeight(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v3, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/am;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->c:Landroid/content/Context;

    invoke-direct {v1, v0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setOrientation(I)V

    const/16 v0, 0x10

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setGravity(I)V

    mul-float v0, v2, p2

    float-to-int v0, v0

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-virtual {v1, v0, v5, v2, v5}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    new-instance v0, Landroid/widget/AbsListView$LayoutParams;

    const/high16 v2, 0x42aa

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-direct {v0, v3, v2}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v2, Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->c:Landroid/content/Context;

    invoke-direct {v2, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/high16 v0, 0x4080

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/4 v3, 0x2

    if-ge v0, v3, :cond_0

    const/4 v0, 0x2

    :cond_0
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x10

    if-lt v3, v4, :cond_1

    const v3, 0xffffff

    invoke-static {v5, v3, v0, v7}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    mul-float v3, v6, p2

    float-to-int v3, v3

    const/high16 v4, 0x41f0

    mul-float/2addr v4, p2

    float-to-int v4, v4

    invoke-direct {v0, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/am;->c:Landroid/content/Context;

    invoke-direct {v0, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    const/high16 v2, 0x420c

    mul-float/2addr v2, p2

    invoke-virtual {v0, v5, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    const/high16 v2, -0x100

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    const-string v2, "\u4eca\u65e5\u70ed\u8bcd\u699c"

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, -0x2

    const/4 v4, -0x2

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    mul-float v3, v6, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/park/ui/aq;

    invoke-direct {v0, p0}, Lcom/xingbook/park/ui/aq;-><init>(Lcom/xingbook/park/ui/am;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/am;->d:Lcom/xingbook/park/ui/aq;

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/park/ui/am;->d:Lcom/xingbook/park/ui/aq;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    new-instance v0, Lcom/xingbook/park/ui/an;

    invoke-direct {v0, p0}, Lcom/xingbook/park/ui/an;-><init>(Lcom/xingbook/park/ui/am;)V

    invoke-static {p1, p0, p2, v0}, Lcom/xingbook/park/ui/p;->a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/r;)Lcom/xingbook/park/ui/p;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/ui/am;->f:Lcom/xingbook/park/ui/p;

    return-void

    :cond_1
    const v3, 0xffffff

    invoke-static {v5, v3, v0, v7}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/park/ui/am;)F
    .locals 1

    iget v0, p0, Lcom/xingbook/park/ui/am;->b:F

    return v0
.end method

.method static synthetic b(Lcom/xingbook/park/ui/am;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->c:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/park/ui/am;)Lcom/xingbook/park/ui/ap;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->e:Lcom/xingbook/park/ui/ap;

    return-object v0
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->g:Lcom/xingbook/park/ui/as;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/as;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/ui/ao;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/ao;-><init>(Lcom/xingbook/park/ui/am;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic d(Lcom/xingbook/park/ui/am;)Lcom/xingbook/park/ui/p;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->f:Lcom/xingbook/park/ui/p;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/park/ui/am;)Lcom/xingbook/park/ui/aq;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->d:Lcom/xingbook/park/ui/aq;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/park/ui/am;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/ui/am;->c()V

    return-void
.end method

.method static synthetic g(Lcom/xingbook/park/ui/am;)Lcom/xingbook/park/ui/as;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->g:Lcom/xingbook/park/ui/as;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/am;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/am;->d:Lcom/xingbook/park/ui/aq;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/aq;->a()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-direct {p0}, Lcom/xingbook/park/ui/am;->c()V

    :cond_0
    return-void
.end method

.method public b()V
    .locals 1

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/am;->setVisibility(I)V

    return-void
.end method
